<div class='fui-page fui-page-current member-log-page'>
	<div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click='goback()'></a>
        </div>
        <div class="title">充值记录</div>
    </div>
    <div class='fui-content'>
		<div class="fui-tab fui-tab-success">
			<a ng-class="{'active':pagedata.params.status==0}" class="external" href="javascript:;" ng-click="pagedata.params.status=0;tool.get_list('/order/list/',true)">待支付</a>
			<a ng-class="{'active':pagedata.params.status==1}" class="external" href="javascript:;" ng-click="pagedata.params.status=1;tool.get_list('/order/list/',true)">已支付</a>
			<a ng-class="{'active':pagedata.params.status==2}" class="external" href="javascript:;" ng-click="pagedata.params.status=2;tool.get_list('/order/list/',true)">已完成</a>
		</div>
        <div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
            <i class='fa fa-comment-o'></i><br/>暂时没有任何充值单!
        </div>
		<div style="padding:0 0.5rem">
        <div ng-repeat="item in pagedata.list" class='fui-cell-group' ng-show="pagedata.list.length>0" >
			<div class="fui-cell">
				<div class="fui-cell-info">
					<div class='title bold'>
						<span class="red">额度:￥{{item.fee}}</span>
					</div>
				</div>
				<div class='fui-cell-remark noremark'>
					<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.statustitle}}</span>
				</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-text">
					<div style="line-height:1.4;color:#999;font-size:0.65rem">支付金额： <span class="text-danger">￥{{item.payfee}}</span></div>
					<div style="line-height:1.4;color:#999;font-size:0.65rem">充值电话： <span class="text-danger">{{item.mobile}}</span></div>
					<div style="line-height:1.4;color:#999;font-size:0.65rem">下单时间：{{item.createtime}}</div>
				</div>
			</div>
			<div class="right" style="padding:0.3rem 0.5rem">
				<span ng-if="item.status==0">
					<div class="btn btn-sm btn-success-o order-finish" style="font-size:0.7rem" href="javascript:" ng-click="pay_submit({},'/order/pay/id='+item.id,'/order/','/order/')">支付订单</div>
				</span>
				<!--<span ng-if="item.status==1">
					<div class="btn btn-sm btn-success-o order-finish" style="font-size:0.7rem" href="javascript:" ng-click="post({},'/order/dingpei2/id='+item.id);">申请退款</div>
				</span>-->
			</div>
			</div>
		</div>
    </div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('/order/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('/order/list/');
}
</script>